package cn.luckdou.system.model.bus_dict;

import org.apache.commons.lang.StringUtils;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 业务字典
 * </p>
 *
 * @author Dadou
 * @since 2017-10-12
 */
@TableName("tb_bus_dict")
public class BusDict extends Model<BusDict> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 文字描述
     */
	private String description;
    /**
     * 描述的拼音
     */
	@TableField("dict_py")
	private String dictPy;
    /**
     * 类型
     */
	private String type;
    /**
     * 显示标签
     */
	private String label;
    /**
     * 值
     */
	private Integer value;
    /**
     * 排序
     */
	private Integer hsort;
    /**
     * 状态 1正常 0停用
     */
	private Integer status;
    /**
     * 创建时间
     */
	@TableField("created_time")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createdTime;
    /**
     * 修改时间
     */
	@TableField("updated_time")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updatedTime;
    /**
     * 删除时间
     */
	@TableField("deleted_time")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date deletedTime;
	/**
	 * 无参构造方法
	 */
	public BusDict(){
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description =StringUtils.isNotBlank(description)?description:null;
	}

	public String getDictPy() {
		return dictPy;
	}

	public void setDictPy(String dictPy) {
		this.dictPy =StringUtils.isNotBlank(dictPy)?dictPy:null;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type =StringUtils.isNotBlank(type)?type:null;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label =StringUtils.isNotBlank(label)?label:null;
	}

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	public Integer getHsort() {
		return hsort;
	}

	public void setHsort(Integer hsort) {
		this.hsort = hsort;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Date getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(Date updatedTime) {
		this.updatedTime = updatedTime;
	}

	public Date getDeletedTime() {
		return deletedTime;
	}

	public void setDeletedTime(Date deletedTime) {
		this.deletedTime = deletedTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
